home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / mac / Sample Code / QuickTime / QuickTimeIntro / MakeEffectMovie / Clippings / GetWhatKindOfEffect.clp < prev    next >
MacBinary  |  2000-10-06  |  1.6 KB  |  [clpt/drag]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert TRS-80 CLP File (image/trs80Clp) ext Supported
66% dexvert PC Paint Image (image/pcPaint) ext Supported
66% dexvert Windows Clipboard (image/windowsClipboard) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Quattro Pro Clip Art (image/quattroProClipArt) ext Unsupported
1% dexvert Home Plan Pro 5 Clip (other/homePlanPro5Clip) ext Unsupported
100% file MacBinary II, inited, Tue Apr 18 19:12:14 2000, modified Fri Oct 6 15:36:48 2000, creator 'drag', type 'clpt' "GetWhatKindOfEffect.clp", at 0x80 1432 bytes resource Apple HFS/HFS+ resource fork, map offset 0x552, map length 0x46, data length 0x452, at 16 0x0946696c, nextResourceMap 0x7ac6010, fileRef 0x3bdc, list offset 0x1c, name offset 0x46, 2 types, 0x54455854 'TEXT' * 1 resource offset 0x12 default (weak)
99% file data default
74% TrID Mac Text clippings (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[clpt]
macFileCreator[drag]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 17 47 65 74 57 68 61 | 74 4b 69 6e 64 4f 66 45 |..GetWha|tKindOfE|
|00000010| 66 66 65 63 74 2e 63 6c | 70 00 00 00 00 00 00 00 |ffect.cl|p.......|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 63 6c 70 74 64 72 61 | 67 01 00 00 00 00 00 00 |.clptdra|g.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 05 98 b5 22 9c 4e b6 |........|....".N.|
|00000060| 03 da 50 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..P.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9e 39 00 00 |........|.....9..|
|00000080| 00 00 01 00 00 00 05 52 | 00 00 04 52 00 00 00 46 |.......R|...R...F|
|00000090| 09 46 69 6c 65 3a 09 09 | 4d 61 6b 65 45 66 66 65 |.File:..|MakeEffe|
|000000a0| 63 74 4d 6f 76 69 65 2e | 63 0d 2f 2f 0d 2f 2f 09 |ctMovie.|c.//.//.|
|000000b0| 43 6f 6e 74 61 69 6e 73 | 3a 09 51 75 69 63 6b 54 |Contains|:.QuickT|
|000000c0| 69 6d 65 20 76 69 64 65 | 6f 20 65 66 66 65 63 74 |ime vide|o effect|
|000000d0| 20 73 75 70 70 6f 72 74 | 20 66 6f 72 20 51 75 69 | support| for Qui|
|000000e0| 63 6b 54 69 6d 65 20 6d | 6f 76 69 65 73 2e 0d 2f |ckTime m|ovies../|
|000000f0| 2f 09 09 09 09 54 68 69 | 73 20 66 69 6c 65 20 69 |/....Thi|s file i|
|00000100| 73 20 75 73 65 64 20 66 | 6f 72 20 42 4f 54 48 20 |s used f|or BOTH |
|00000110| 4d 61 63 4f 53 20 61 6e | 64 20 57 69 6e 64 6f 77 |MacOS an|d Window|
|00000120| 73 2e 0d 2f 2f 0d 2f 2f | 09 57 72 69 74 74 65 6e |s..//.//|.Written|
|00000130| 20 62 79 3a 09 54 69 6d | 20 4d 6f 6e 72 6f 65 0d | by:.Tim| Monroe.|
|00000140| 2f 2f 09 09 09 09 42 61 | 73 65 64 20 28 68 65 61 |//....Ba|sed (hea|
|00000150| 76 69 6c 79 21 29 20 6f | 6e 20 74 68 65 20 70 72 |vily!) o|n the pr|
|00000160| 65 76 69 6f 75 73 20 4d | 61 6b 65 45 66 66 65 63 |evious M|akeEffec|
|00000170| 74 4d 6f 76 69 65 20 63 | 6f 64 65 20 77 72 69 74 |tMovie c|ode writ|
|00000180| 00 00 04 2a 09 2f 2f 20 | 45 78 74 72 61 63 74 20 |...*.// |Extract |
|00000190| 74 68 65 20 27 77 68 61 | 74 27 20 61 74 6f 6d 20 |the 'wha|t' atom |
|000001a0| 74 6f 20 66 69 6e 64 20 | 6f 75 74 20 77 68 61 74 |to find |out what|
|000001b0| 20 6b 69 6e 64 20 6f 66 | 20 65 66 66 65 63 74 20 | kind of| effect |
|000001c0| 69 74 20 69 73 2e 0d 09 | 2f 2f 20 54 68 69 73 20 |it is...|// This |
|000001d0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 69 73 20 72 |informat|ion is r|
|000001e0| 65 74 75 72 6e 65 64 20 | 74 6f 20 75 73 20 62 79 |eturned |to us by|
|000001f0| 20 74 68 65 20 65 66 66 | 65 63 74 73 20 64 69 61 | the eff|ects dia|
|00000200| 6c 6f 67 20 77 68 69 63 | 68 0d 09 2f 2f 20 69 73 |log whic|h..// is|
|00000210| 20 69 6e 76 6f 6b 65 64 | 20 75 73 69 6e 67 20 74 | invoked| using t|
|00000220| 68 65 20 51 54 53 74 61 | 6e 64 61 72 64 50 61 72 |he QTSta|ndardPar|
|00000230| 61 6d 65 74 65 72 44 69 | 61 6c 6f 67 44 6f 41 63 |ameterDi|alogDoAc|
|00000240| 74 69 6f 6e 20 66 75 6e | 63 74 69 6f 6e 2e 0d 09 |tion fun|ction...|
|00000250| 2f 2f 20 57 65 27 6c 6c | 20 75 73 65 20 74 68 69 |// We'll| use thi|
|00000260| 73 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 77 68 |s inform|ation wh|
|00000270| 65 6e 20 77 65 20 62 75 | 69 6c 64 20 74 68 65 20 |en we bu|ild the |
|00000280| 65 66 66 65 63 74 73 20 | 64 65 73 63 72 69 70 74 |effects |descript|
|00000290| 69 6f 6e 0d 09 2f 2f 20 | 61 20 62 69 74 20 66 75 |ion..// |a bit fu|
|000002a0| 72 74 68 65 72 20 64 6f | 77 6e 20 69 6e 20 74 68 |rther do|wn in th|
|000002b0| 65 20 63 6f 64 65 2e 0d | 09 0d 09 7b 0d 09 09 51 |e code..|...{...Q|
|000002c0| 54 41 74 6f 6d 09 09 09 | 6d 79 45 66 66 65 63 74 |TAtom...|myEffect|
|000002d0| 41 74 6f 6d 3b 0d 09 09 | 51 54 41 74 6f 6d 49 44 |Atom;...|QTAtomID|
|000002e0| 09 09 6d 79 45 66 66 65 | 63 74 41 74 6f 6d 49 44 |..myEffe|ctAtomID|
|000002f0| 3b 0d 09 09 6c 6f 6e 67 | 09 09 09 6d 79 45 66 66 |;...long|...myEff|
|00000300| 65 63 74 43 6f 64 65 53 | 69 7a 65 3b 0d 09 09 50 |ectCodeS|ize;...P|
|00000310| 74 72 09 09 09 09 6d 79 | 45 66 66 65 63 74 43 6f |tr....my|EffectCo|
|00000320| 64 65 50 74 72 3b 0d 0d | 09 09 6d 79 45 66 66 65 |dePtr;..|..myEffe|
|00000330| 63 74 41 74 6f 6d 20 3d | 20 51 54 46 69 6e 64 43 |ctAtom =| QTFindC|
|00000340| 68 69 6c 64 42 79 49 6e | 64 65 78 28 67 45 66 66 |hildByIn|dex(gEff|
|00000350| 65 63 74 53 61 6d 70 6c | 65 2c 20 6b 50 61 72 65 |ectSampl|e, kPare|
|00000360| 6e 74 41 74 6f 6d 49 73 | 43 6f 6e 74 61 69 6e 65 |ntAtomIs|Containe|
|00000370| 72 2c 20 6b 50 61 72 61 | 6d 65 74 65 72 57 68 61 |r, kPara|meterWha|
|00000380| 74 4e 61 6d 65 2c 20 6b | 50 61 72 61 6d 65 74 65 |tName, k|Paramete|
|00000390| 72 57 68 61 74 49 44 2c | 20 26 6d 79 45 66 66 65 |rWhatID,| &myEffe|
|000003a0| 63 74 41 74 6f 6d 49 44 | 29 3b 0d 09 09 0d 09 09 |ctAtomID|);......|
|000003b0| 6d 79 45 72 72 20 3d 20 | 51 54 4c 6f 63 6b 43 6f |myErr = |QTLockCo|
|000003c0| 6e 74 61 69 6e 65 72 28 | 67 45 66 66 65 63 74 53 |ntainer(|gEffectS|
|000003d0| 61 6d 70 6c 65 29 3b 0d | 09 09 42 61 69 6c 45 72 |ample);.|..BailEr|
|000003e0| 72 6f 72 28 6d 79 45 72 | 72 29 3b 0d 0d 09 09 6d |ror(myEr|r);....m|
|000003f0| 79 45 72 72 20 3d 20 51 | 54 47 65 74 41 74 6f 6d |yErr = Q|TGetAtom|
|00000400| 44 61 74 61 50 74 72 28 | 67 45 66 66 65 63 74 53 |DataPtr(|gEffectS|
|00000410| 61 6d 70 6c 65 2c 20 6d | 79 45 66 66 65 63 74 41 |ample, m|yEffectA|
|00000420| 74 6f 6d 2c 20 26 6d 79 | 45 66 66 65 63 74 43 6f |tom, &my|EffectCo|
|00000430| 64 65 53 69 7a 65 2c 20 | 26 6d 79 45 66 66 65 63 |deSize, |&myEffec|
|00000440| 74 43 6f 64 65 50 74 72 | 29 3b 0d 09 09 42 61 69 |tCodePtr|);...Bai|
|00000450| 6c 45 72 72 6f 72 28 6d | 79 45 72 72 29 3b 0d 0d |lError(m|yErr);..|
|00000460| 09 09 69 66 20 28 6d 79 | 45 66 66 65 63 74 43 6f |..if (my|EffectCo|
|00000470| 64 65 53 69 7a 65 20 21 | 3d 20 73 69 7a 65 6f 66 |deSize !|= sizeof|
|00000480| 28 4f 53 54 79 70 65 29 | 29 20 7b 0d 09 09 09 6d |(OSType)|) {....m|
|00000490| 79 45 72 72 20 3d 20 70 | 61 72 61 6d 45 72 72 3b |yErr = p|aramErr;|
|000004a0| 0d 09 09 09 67 6f 74 6f | 20 62 61 69 6c 3b 0d 09 |....goto| bail;..|
|000004b0| 09 7d 0d 09 09 0d 09 09 | 2f 2f 20 67 65 74 20 74 |.}......|// get t|
|000004c0| 68 65 20 65 66 66 65 63 | 74 20 63 6f 64 65 0d 09 |he effec|t code..|
|000004d0| 09 6d 79 45 66 66 65 63 | 74 43 6f 64 65 20 3d 20 |.myEffec|tCode = |
|000004e0| 2a 28 4f 53 54 79 70 65 | 20 2a 29 6d 79 45 66 66 |*(OSType| *)myEff|
|000004f0| 65 63 74 43 6f 64 65 50 | 74 72 3b 09 09 2f 2f 20 |ectCodeP|tr;..// |
|00000500| 22 74 73 6b 22 0d 09 09 | 6d 79 45 66 66 65 63 74 |"tsk"...|myEffect|
|00000510| 43 6f 64 65 20 3d 20 45 | 6e 64 69 61 6e 55 33 32 |Code = E|ndianU32|
|00000520| 5f 42 74 6f 4e 28 6d 79 | 45 66 66 65 63 74 43 6f |_BtoN(my|EffectCo|
|00000530| 64 65 29 3b 09 2f 2f 20 | 62 65 63 61 75 73 65 20 |de);.// |because |
|00000540| 74 68 65 20 64 61 74 61 | 20 69 73 20 72 65 61 64 |the data| is read|
|00000550| 20 66 72 6f 6d 20 61 6e | 20 61 74 6f 6d 20 63 6f | from an| atom co|
|00000560| 6e 74 61 69 6e 65 72 0d | 09 09 0d 09 09 6d 79 45 |ntainer.|.....myE|
|00000570| 72 72 20 3d 20 51 54 55 | 6e 6c 6f 63 6b 43 6f 6e |rr = QTU|nlockCon|
|00000580| 74 61 69 6e 65 72 28 67 | 45 66 66 65 63 74 53 61 |tainer(g|EffectSa|
|00000590| 6d 70 6c 65 29 3b 0d 09 | 09 42 61 69 6c 45 72 72 |mple);..|.BailErr|
|000005a0| 6f 72 28 6d 79 45 72 72 | 29 3b 0d 09 7d 0d 00 00 |or(myErr|);..}...|
|000005b0| 00 20 00 00 00 01 00 00 | 00 04 00 00 00 00 00 00 |. ......|........|
|000005c0| 00 01 54 45 58 54 00 00 | 01 00 00 00 00 00 00 00 |..TEXT..|........|
|000005d0| 00 00 00 00 01 00 00 00 | 05 52 00 00 04 52 00 00 |........|.R...R..|
|000005e0| 00 46 07 ac 60 10 3b dc | 00 00 00 1c 00 46 00 01 |.F..`.;.|.....F..|
|000005f0| 54 45 58 54 00 00 00 12 | 64 72 61 67 00 00 00 1e |TEXT....|drag....|
|00000600| 01 00 ff ff 00 00 00 00 | 00 00 28 bc 00 80 ff ff |........|..(.....|
|00000610| 00 00 04 2e 00 00 3a 68 | 00 00 00 00 00 00 00 00 |......:h|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+